package com.tulei.system.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.tulei.common.response.R;
import com.tulei.system.Entity.Dto.LoginDto;
import com.tulei.system.Entity.Dto.Modle;
import com.tulei.system.Entity.Dto.TableDto;
import com.tulei.system.Entity.SysUser;

import java.util.List;
import java.util.Map;

/**
* @author 29605
* @description 针对表【sys_user】的数据库操作Service
* @createDate 2024-06-06 16:53:07
*/
public interface UserService extends IService<SysUser> {

    R<Object> login(LoginDto login);


    byte[] getUserImage(String account);


    boolean updateUserAvatar(Long userId, String avatar);

    boolean checkPhoneUnique(SysUser user);
    boolean checkEmailUnique(SysUser user);

    int updateUserProfile(SysUser user);
    Map<String, Object> getInfo();

    List<SysUser> selectList(TableDto tableDto, int offset, int pageSize);

    List<Modle> getList();
}
